Skip to content

Respect ignoring undefined variables in else blocks #239

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 2 commits into from
Jul 6, 2021

Conversation

sirbrillig
Copy link
Owner

In #189 we introduced special handling for variables used in else blocks, but since it didn't use the normal processing system, we broke respecting the existing options for ignoring undefined variables like allowUndefinedVariablesInFileScope, validUndefinedVariableNames, and validUndefinedVariableRegexp. This PR makes sure that the special handling respects those options.

Fixes #238

@sirbrillig sirbrillig merged commit 3fad284 into 2.10 Jul 6, 2021
@sirbrillig sirbrillig deleted the fix-valid-undefined-in-else branch July 6, 2021 23:45
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Property validUndefinedVariableNames is ignored inside else statement
1 participant